# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-wgnlpy
_pkgname=wgnlpy
pkgver=0.1.1
pkgrel=1
pkgdesc="Python Netlink connector to WireGuard"
url="https://github.com/ArgosyLabs/wgnlpy"
arch="noarch"
license="MIT"
depends="py3-pyroute2 py3-cryptography"
makedepends="py3-setuptools"
install_if="ifstate wireguard-tools-wg" # soft-dependency for ifstate's wireguard support
options="!check" # no tests available
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c862795e9d993b24d49a5be1cd73fde5cca8545b0087e01c58ee8b64b1f8d387f25c359c5894c333b63a877e82e35da95effc0750f2474617c1cc55dd620e05d  wgnlpy-0.1.1.tar.gz"
